/*
 * @Author: HeAo
 * @Date: 2021-09-27 16:13:47
 * @LastEditTime: 2021-09-27 16:25:50
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2105\3-1-ES6\day03\6-Map集合.js
 * 别乱动！
 */
let obj = {
  name: 'zhangsan',
  age: 12,
  gender: '男'
}
let entries = Object.entries(obj)
console.log(entries);

let map = new Map(entries);
map.set(true, false)

console.log(map.get('gender'));
console.log(map.has(true));

let entries1 = map.entries()
for (let entry of entries1) {
  console.log(entry);
}

map.forEach((value, key) => {
  console.log(value, key);
})

// console.log(map);

